(function () {
    // 产品介绍
    let dts = body2.querySelectorAll("dt");
    dts.forEach(function (dt) {
        dt.onmouseover = function () {
            this.lastElementChild.className = "active";
        }
        dt.onmouseout = function () {
            this.lastElementChild.className = "";
        }
    })
    // 公司团队
    let as = body3.querySelectorAll("a");
    as.forEach(function (a, i) {
        a.onmouseover = function () {
            this.className = "active";
            let ps = this.querySelectorAll("p");
            ps.forEach(val => {
                val.className = "active"
            })
        }
        a.onmouseout = function () {
            this.className = "";
            let ps = this.querySelectorAll("p");
            ps.forEach(val => {
                val.className = ""
            })
        }
        a.onclick = function () {
            open("./html/index 团队介绍_1 copy.html");
        }
    })
    //  弹窗广告 
    setTimeout(() => {
        register.style.bottom = "0";
    }, 3000);
    register.onclick = e => {
        e = e.target;
        if (e.className == "iconfont hide") {
            e.parentNode.parentNode.style.bottom = "-100%";
            setTimeout(() => {
                e.parentNode.parentNode.style.bottom = "0";
            }, 5000);
        } else if (e.className == "iconfont register") {
            open("./html/index 注册页.html", "kafei", "width=800px height=550px top=50px left=88px");
        } else if (e.nodeName == "H1") {
            open("./html/index 购买页.html", "kafei");
        } else {
            register.style.bottom = register.style.bottom == "0px" ? "-40vh" : "0";
        }
    }
}())

